<?php
/**
 * Created by PhpStorm.
 * User: wangchaozhen
 * Date: 2018/5/19
 * Time: 21:09
 */

namespace app\admin\validate;

use think\Validate;

class Goods extends Validate
{
    protected $rule = [
        'name' => 'require|max:100',
        'orgin_price' => 'require',
        'current_price' => 'require',
        'content' => 'require'
    ];

    protected $message = [
        'name.require' => '商品名称不能为空且不能超过100字符',
        'orgin_price.require' => '原价不能为空',
        'current_price.require' => '现价不能为空',
        'content.require' => '内容不能为空'
    ];
}